<template>
	<view>
		<s-layout title="人员详情" navbar="custom3"   onShareAppMessage>
			<ass-navbar title="人员详情"></ass-navbar>
			<view class="card-wrap">
				<image :src="sheep.$url.cdn(state.data.nurse_picture)"   class="avatar"></image>
				<view class="desc">
					<view class="name-identity sa-c-c">
						<view class="name">{{state.data.nurse_name}}</view>
					
						<view class="identity">{{state.data.nurse_job}}</view>
					</view>
					<view class="work-long sa-c-c color_white">从业时间:{{state.data.nurse_life}}年</view>
				</view>
			</view>
			<view class="main">
				<view class="item">
					<view class="title">擅长</view>
					<view class="content">{{state.data.proficient_content}}</view>
				</view>
				<view class="item ss-m-t-20">
					<view class="title">简介</view>
					<view class="content">{{state.data.brief_introduction}}</view>
				</view>
			</view>
		</s-layout>	
	</view>
</template>

<script setup>
	import {
		computed,
		reactive,
		ref,
		onMounted
	} from 'vue';
	
	import merchantApi from '@/sheep/api/merchant'
	import {
		onLoad,
		onShow,
		onPageScroll,
		onReachBottom ,
	} from '@dcloudio/uni-app';
	
	import sheep from '@/sheep';
	
	import assNavbar from '@/components/ass-navbar.vue'
	
	const state = reactive({
		data:{},
	})
	
	
	const template = computed(() => sheep.$store('app').template?.home);
	
	onLoad((option)=>{
		state.data  = JSON.parse(option.info);
	})
	
</script>

<style  lang="scss" scoped>
	
.card-wrap{
	height:192rpx;
	width: 100%;
	background: #FB7427;
	display:flex;
	justify-content: flex-start;
	align-items: center;
	
	.avatar{
		width:160rpx;
		height:160rpx;
		margin-left:30rpx;
	}
	.desc{
			margin-left:20rpx;
			font-family: PingFang SC;
			.name-identity{
				height:80rpx;
				.name{
					font-size: 36rpx;
					line-height: 48rpx;
					letter-spacing: 0px;
					color: #FFFFFF;
					
				}
				.identity{
					margin-left: 20rpx;
					font-size: 24rpx;
					line-height: 48rpx;
					color: #FFFFFF;
					
					padding-top: 16rpx;;
				}
				
			}
			.work-long{
				height:80rpx;
				
				font-size: 24rpx;
			
				line-height: 48rpx;
				letter-spacing: 1px;
				
				
				color: #FFFFFF;
			}
		}
	
	
}

.main{
	margin: 30rpx 40rpx;
	width: calc(100% - 80rpx);
	
	font-family: PingFang SC;
	.item{
		width:100%;
		
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: flex-start;
		font-family: PingFang SC;
		.title{
			
			width:60rpx;
			flex-direction: row;
			justify-content: center;
			align-items: flex-start;
			font-size: 24rpx;
			line-height: 30rpx;
			height:30rpx;
			color: #929292;
		}
		.content{
			width:calc(100% - 60rpx);
			font-size: 24rpx;
			font-weight: normal;
			line-height: 30rpx;
			color: #3D3D3D;
		}
	}
	
}


.sa-c-c{
	display:flex;
	justify-content: center;
	align-items: center;
}
.color_white{
	color:#ffffff;
}
</style>
